<template>
	<view class="report-container">

		<view class="report-section section02">
			<view class="title">基本信息</view>
			<view class="content">
				<view class="bottom">
					<view class="line">
						<text class="desc">企业名称</text>
						<text class="info">{{QI.companyName}}</text>
					</view>
					<view class="line">
						<text class="desc">企业税号</text>
						<text class="info">{{QI.taxId}}</text>
					</view>
					<view class="line">
						<text class="desc">评分</text>
						<text class="info">{{QI.score}}</text>
					</view>
					<view class="line">
						<text class="desc">评级</text>
						<text class="info">{{QI.rank}}</text>
					</view>
					<view class="line">
						<text class="desc">纳税信用评级</text>
						<text class="info">{{QI.evaluationResult}}</text>
					</view>
					<view class="line">
						<text class="desc">采集结束时间</text>
						<text class="info">{{QI.taxCollectEndTime}}</text>
					</view>
				</view>
			</view>
		</view>

		<view class="report-section section02">
			<view class="title">工商信息</view>
			<!-- {{QI.enterprise}} -->
			<view class="content" v-if="QI.enterprise">
				<view class="bottom" v-if="QI.enterprise.basic">
					<view class="line">
						<text class="desc">一级行业</text>
						<text class="info">{{QI.enterprise.basic.industryName}}</text>
					</view>
					<view class="line">
						<text class="desc">地址</text>
						<text class="info">{{QI.enterprise.basic.address}}</text>
					</view>
					<view class="line">
						<text class="desc">企业类型</text>
						<text class="info">{{QI.enterprise.basic.econKind}}</text>
					</view>
					<view class="line">
						<text class="desc">经营截止日期</text>
						<text class="info">{{QI.enterprise.basic.termEnd}}</text>
					</view>
					<view class="line">
						<text class="desc">checkDate</text>
						<text class="info">{{QI.enterprise.basic.checkDate}}</text>
					</view>
					<view class="line">
						<text class="desc">经营起始日期</text>
						<text class="info">{{QI.enterprise.basic.termStart}}</text>
					</view>

					<view class="line">
						<text class="desc">注册资本</text>
						<text class="info">{{QI.enterprise.basic.registCapi}}</text>
					</view>
					<view class="line">
						<text class="desc">经营范围</text>
						<text class="info">{{QI.enterprise.basic.scope}}</text>
					</view>

					<view class="line">
						<text class="desc">法人姓名</text>
						<text class="info">{{QI.enterprise.basic.operName}}</text>
					</view>
					<view class="line">
						<text class="desc">成立日期</text>
						<text class="info">{{QI.enterprise.basic.startDate}}</text>
					</view>
					<view class="line">
						<text class="desc">经营状态</text>
						<text class="info">{{QI.enterprise.basic.status}}</text>
					</view>
				</view>
			</view>

			<view class="content" v-if="QI.enterprise && QI.enterprise.changerecords">
				<view style="text-align: center;margin-top: 20px;">
					变更记录{{QI.enterprise.changerecords.length==0?'（无）':''}}
				</view>
				<view class="bottom" v-for="item of QI.enterprise.changerecords">
					<view class="line">
						<text class="desc">变更前</text>
						<text class="info">{{item.beforeContent}}</text>
					</view>
					<view class="line">
						<text class="desc">变更后</text>
						<text class="info">{{item.afterContent}}</text>
					</view>
					<view class="line">
						<text class="desc">变更日期</text>
						<text class="info">{{item.changeDate}}</text>
					</view>
					<view class="line">
						<text class="desc">变更项目</text>
						<text class="info">{{item.changeItem}}</text>
					</view>
				</view>
			</view>

			<view class="content" v-if="QI.enterprise && QI.enterprise.partners">
				<view style="text-align: center;margin-top: 20px;">
					股东信息{{QI.enterprise.partners.length==0?'（无）':''}}
				</view>

				<view class="bottom" v-for="item of QI.enterprise.partners">
					<view class="line">
						<text class="desc">股东名称</text>
						<text class="info">{{item.name}}</text>
					</view>
					<view class="line">
						<text class="desc">股东类型</text>
						<text class="info">{{item.stockType}}</text>
					</view>
					<view class="line">
						<text class="desc">/证件类型</text>
						<text class="info">{{item.identifyType}}</text>
					</view>
					<view class="line">
						<text class="desc">证件编号</text>
						<text class="info">{{item.identifyNo}}</text>
					</view>
					<view class="line">
						<text class="desc">持股比例</text>
						<text class="info">{{item.stockRate}}</text>
					</view>
					<view class="line">
						<text class="desc">累计应缴金额</text>
						<text class="info">{{item.totalShouldCapi}}</text>
					</view>

					<view class="line">
						<text class="desc">累计应缴金额</text>
						<text class="info">{{item.totalShouldCapi}}</text>
					</view>
				</view>
			</view>

			<view class="content" v-if="QI.enterprise && QI.enterprise.abnormal">
				<view style="text-align: center;margin-top: 20px;">
					异常信息{{QI.enterprise.abnormal.length==0?'（无）':''}}
				</view>
				<view class="bottom" v-for="item of QI.enterprise.abnormal">
					<view class="line">
						<text class="desc">列入日期</text>
						<text class="info">{{item.inDate}}</text>
					</view>
					<view class="line">
						<text class="desc">例如原因</text>
						<text class="info">{{item.inReason}}</text>
					</view>
					<view class="line">
						<text class="desc">/证件类型</text>
						<text class="info">{{item.identifyType}}</text>
					</view>
					<view class="line">
						<text class="desc">移除日期</text>
						<text class="info">{{item.outDate}}</text>
					</view>
					<view class="line">
						<text class="desc">移除原因</text>
						<text class="info">{{item.outReason}}</text>
					</view>
				</view>
			</view>

			<view class="content">
				<view style="text-align: center;margin-top: 20px;">
					高管信息{{QI.enterprise.employees.length==0?'（无）':''}}
				</view>
				<view class="bottom" v-for="item of QI.enterprise.employees">
					<view class="line">
						<text class="desc">名称</text>
						<text class="info">{{item.name}}</text>
					</view>
					<view class="line">
						<text class="desc">职位</text>
						<text class="info">{{item.jobTitle}}</text>
					</view>
				</view>
			</view>
		</view>

		<view class="report-section section02">
			<view class="title">商标</view>
			<!-- {{QI.trademark}} -->
			<view class="content" v-for="(item, index) of QI.trademark">
				<view class="bottom">
					<view class="line">
						<text class="desc">注册号</text>
						<text class="info">{{item.industryName}}</text>
					</view>

					<view class="line">
						<text class="desc">专用权期限</text>
						<text class="info">{{item.period}}</text>
					</view>

					<view class="line">
						<text class="desc">商标名称</text>
						<text class="info">{{item.name}}</text>
					</view>

					<view class="line">
						<text class="desc">分类名</text>
						<text class="info">{{item.typeNum}}</text>
					</view>

					<view class="line">
						<text class="desc">申请日期</text>
						<text class="info">{{item.applyDate}}</text>
					</view>

					<view class="line">
						<text class="desc">状态</text>
						<text class="info">{{item.status}}</text>
					</view>
				</view>
			</view>
		</view>

		<view class="report-section section02">
			<view class="title">企业域名信息</view>
			<!-- {{QI.domain}} -->
			<view class="content" v-for="(item, index) of QI.domain">
				<view class="bottom">
					<view class="line">
						<text class="desc">主页 URL</text>
						<text class="info">{{item.homeUrl}}</text>
					</view>

					<view class="line">
						<text class="desc">网站备案许可号</text>
						<text class="info">{{item.number}}</text>
					</view>

					<view class="line">
						<text class="desc">域名</text>
						<text class="info">{{item.domain}}</text>
					</view>

					<view class="line">
						<text class="desc">网站名称</text>
						<text class="info">{{item.siteName}}</text>
					</view>

					<view class="line">
						<text class="desc">最后更新时间</text>
						<text class="info">{{item.lastUpdatedTime}}</text>
					</view>

					<view class="line">
						<text class="desc">网站名称</text>
						<text class="info">{{item.checkDate}}</text>
					</view>
				</view>
			</view>
		</view>

		<view class="report-section section02">
			<view class="title">企业著作权信息
			</view>
			<!-- {{QI.copyright}} -->
			<view class="content">
				<view class="bottom" v-for="(item, index) of QI.copyright">
					<view class="line">
						<text class="desc">著作注册号</text>
						<text class="info">{{item.number}}</text>
					</view>
					<view class="line">
						<text class="desc">著作名称</text>
						<text class="info">{{item.name}}</text>
					</view>
					<view class="line">
						<text class="desc">著作类型名称</text>
						<text class="info">{{item.typeName}}</text>
					</view>
					<view class="line">
						<text class="desc">软件著作完成时间</text>
						<text class="info">{{item.successDate}}</text>
					</view>
					<view class="line">
						<text class="desc">著作批准时间</text>
						<text class="info">{{item.approvalDate}}</text>
					</view>
					<view class="line">
						<text class="desc">最后更新时间</text>
						<text class="info">{{item.lastUpdatedTime}}</text>
					</view>
					<view class="line">
						<text class="desc">著作权登记批准时间"</text>
						<text class="info">{{item.firstDate}}</text>
					</view>
				</view>
			</view>
		</view>
	</view>
</template>


<script>
	export default {
		name: "qy-jcxx",
		props: {
			QI: {
				required: true,
				type: Object
			}
		},
		data() {
			return {
				companyName: "",
				taxId: "",
				taxCollectEndTime: "",
				score: null,
				rank: "",
				evaluationResult: "",
				// startMonth: "",
				// endMonth: "",
				// lastCorporateChange: "",
				copyright: [],
				copyrightSoft: [],
				domain: [],
				trademark: [],
				patent: [],
				enterprise: {}
			}
		}
	}
</script>

<style lang="scss">
	.report-container {
		scroll-behavior: smooth;
		// min-height: 100vh;
		height: 100%;

		background: url("@/static/images/bg.png") no-repeat 0 0, #F5F6FC;

		background-size: contain;

		padding: 100rpx 10rpx;

		box-sizing: border-box;

		.report-section {
			margin-top: 10rpx;
			width: 100%;
			min-height: 200rpx;
			background: url("@/static/images/other/section-bg.png") no-repeat -28rpx 0;
			background-size: 100% auto;
			background-color: #f0f0f0;

			//background-color: red;
			.title {
				// width: 156rpx;
				height: 48rpx;
				color: #fff;
				font-weight: bold;
				font-size: 32rpx;
			}
		}

		.section02 {
			padding-bottom: 24rpx;
			// height: 734rpx;
			box-sizing: border-box;
			background-color: #fff;
			border-radius: 16rpx;
			padding: 10rpx 32rpx 32rpx;

			.content {
				.bottom {
					padding-top: 12rpx;
					.line {
						width: 100%;
						// height: 50rpx;
						display: flex;
						align-items: center;
						font-size: 26rpx;
						justify-content: space-between;

						.desc {
							color: #94949C;
						}
						.info {
							max-width: 500rpx;
							color: #3D3D41;
							//white-space: normal;
							word-wrap: break-word;
							text-align: right;
						}
					}
				}
			}
		}
	}
</style>